<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Carte.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Carte.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_carte_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef CARTE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define CARTE_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_case_8h.html" title="Définit la structure d&#39;une Case.">Case.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00019"></a><a class="code" href="struct_carte.html">00019</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00020"></a>00020 {
<a name="l00021"></a><a class="code" href="struct_carte.html#aafce8f5041eb0d9ad8886dad84da2c4d">00021</a>    <a class="code" href="struct_case_str.html" title="Informations définissant l&#39;entrepôt.">Case</a> ***<a class="code" href="struct_carte.html#aafce8f5041eb0d9ad8886dad84da2c4d">tab</a>;         
<a name="l00022"></a><a class="code" href="struct_carte.html#a676e0da0ef83bbbdf42538e54b97506b">00022</a>    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_carte.html#a676e0da0ef83bbbdf42538e54b97506b">x</a>;      
<a name="l00023"></a><a class="code" href="struct_carte.html#ac30de26db5f6d1c18c63913729adca7d">00023</a>    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_carte.html#ac30de26db5f6d1c18c63913729adca7d">y</a>;      
<a name="l00024"></a><a class="code" href="struct_carte.html#a3d99b005d0fb73033dce14d4a135d01f">00024</a>    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_carte.html#a3d99b005d0fb73033dce14d4a135d01f">z</a>;      
<a name="l00025"></a>00025 } <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">/*========================== Gestion de la mémoire ==========================*/</span>
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a131e6680c279a65240975d47c153e8f5" title="Initialise le contenu d&#39;une Carte donnée.">initCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00037"></a>00037 
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ab52ebaa84ff028548c61ee605d4e6aeb" title="Crée une Carte.">creerCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> **pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00049"></a>00049 
<a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a0558800537c1483b28a08ef424461e97" title="Libère une Carte.">libereCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte);
<a name="l00057"></a>00057 
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#aa7bc2042749cc6824caa66f53d0d3aa5" title="Détruit une Carte.">detruireCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="comment">/*==============================Accesseurs===============================*/</span>
<a name="l00073"></a>00073 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_carte_8c.html#a7ccc9229540c6882087a5046aa6f99fd" title="Retourne la taille x de la carte.">getXCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte);
<a name="l00074"></a>00074 
<a name="l00080"></a>00080 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_carte_8c.html#a15a99e8f5d6e7e84b9133d34d551559e" title="Retourne la taille y de la carte.">getYCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte);
<a name="l00081"></a>00081 
<a name="l00087"></a>00087 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_carte_8c.html#af13ddcf05a4c64dc371473ec6a385185" title="Retourne la taille z de la carte.">getZCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte);
<a name="l00088"></a>00088 
<a name="l00097"></a>00097 <a class="code" href="struct_case_str.html" title="Informations définissant l&#39;entrepôt.">Case</a> *<a class="code" href="_carte_8c.html#a31f5edf01a584c9fd940ef022db76f09" title="Retourne la Case dont les coordonnées ont été passées.">getCaseCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00098"></a>00098 
<a name="l00109"></a>00109 <a class="code" href="struct_case_str.html" title="Informations définissant l&#39;entrepôt.">Case</a> **<a class="code" href="_carte_8c.html#ae5ea59ce8bb3dcc87895f46dce965e66" title="Retourne un tableau des pointeurs sur les cases adjacentes à celle dont on aura passé les coordonnées...">getCasesAdjacentesCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00110"></a>00110 
<a name="l00120"></a>00120 <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *<a class="code" href="_carte_8c.html#a11951accb269fef1927f1ddc1af3823e" title="Renvoie le terrain d&#39;une case de la carte dont on aura donné les coordonnées.">getTerrainCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00121"></a>00121 
<a name="l00132"></a>00132 <a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a> *<a class="code" href="_carte_8c.html#ab36ae147d25f6e9d2e5cd69b41efa3b5" title="Retourne un pointeur sur la Production d&#39;une case dont on aura passé les coordonnées. Si pas de production, retourne NULL.">getProdCaseCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00133"></a>00133 
<a name="l00143"></a>00143 <span class="keywordtype">char</span> *<a class="code" href="_carte_8c.html#a2f9761ce8010465661bbb3aacd246b8c" title="Retourne le nom de la production d&#39;une case dont on aura passé les coordonnées. Si pas de production...">getNomProdCaseCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00144"></a>00144 
<a name="l00155"></a>00155 <span class="keywordtype">int</span> <a class="code" href="_carte_8c.html#aa9c90a56745b400dd4ca420d8d5e152a" title="Retourne la valeur de Pourcentage de la production d&#39;une case dont on aura passé les coordonnées...">getPourcentageProdCaseCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00156"></a>00156 
<a name="l00167"></a>00167 <span class="keywordtype">int</span> <a class="code" href="_carte_8c.html#a2a8995940be751f2e4dd02f79b89090b" title="Retourne la valeur de Vitesse de la production d&#39;une case dont on aura passé les coordonnées. Si pas de production, retourne -1.">getVitesseProdCaseCarte</a>(<span class="keyword">const</span> <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ);
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <span class="comment">/*============================== Mutateurs ==============================*/</span>
<a name="l00177"></a>00177 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a5ac83c81a65bb98ea9d284039fee034f" title="Remplace la valeur de la taille X de la carte par une nouvelle valeur, et réalloue la mémoire pour ce...">setXCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nouvX);
<a name="l00178"></a>00178 
<a name="l00186"></a>00186 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ad46cc6a1fb4dd489fae8816e351a70d3" title="Remplace la valeur de la taille Y de la carte par une nouvelle valeur, et réalloue la mémoire pour ce...">setYCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nouvY);
<a name="l00187"></a>00187 
<a name="l00195"></a>00195 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a04b367ccabe9759f1307e49570aed038" title="Remplace la valeur de la taille Z de la carte par une nouvelle valeur, et réalloue la mémoire pour ce...">setZCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nouvZ);
<a name="l00196"></a>00196 
<a name="l00206"></a>00206 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#afd99dd4420ea3f4d61aef66368f82eed" title="Remplace la case dont les coordonnées ont été passées en paramètres par une case donnée.">setCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <a class="code" href="struct_case_str.html" title="Informations définissant l&#39;entrepôt.">Case</a> *nouvCase);
<a name="l00207"></a>00207 
<a name="l00217"></a>00217 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ab1ef17ba239bc35e75fdc546e42bcc6c" title="Remplace le terrain de la case dont les coordonnées ont été passées en paramètres par un terrain donn...">setTerrainCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pnouvTerrain);
<a name="l00218"></a>00218 
<a name="l00232"></a>00232 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a23ca9346862b0d7b578be8c4b35074a0" title="Attribue une production à une case dont on aura passé les coordonnées.">setNouvProdCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <span class="keywordtype">char</span> *nomProd);
<a name="l00233"></a>00233 
<a name="l00244"></a>00244 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a54bbece1d54267ee65423be1a3a213f9" title="Remplace le pourcentage de production de la case par une valeur donnée additionnée à la valeur de bas...">ajoutePourcentageProdCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <span class="keywordtype">int</span> pourcent);
<a name="l00245"></a>00245 
<a name="l00256"></a>00256 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#afb15205e0ac7b3623b347239ab22d6b5" title="Remplace la vitesse de production de la case par une valeur donnée additionnée à la valeur de base...">ajouteVitesseProdCaseCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <span class="keywordtype">int</span> vitesse);
<a name="l00257"></a>00257 
<a name="l00258"></a>00258 <span class="comment">/*===============================Manipulation================================*/</span>
<a name="l00259"></a>00259 
<a name="l00269"></a>00269 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a9830909a4383ede40a275438517ce90a" title="Pour une case donnée, remplit son tableau de cases adjacentes et son nombre de cases adjacentes...">setCasesAdjacentesCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordX, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordY,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> coordZ, <span class="keyword">const</span> <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00270"></a>00270 
<a name="l00280"></a>00280 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#abe03c64674a921b78c77910c911e7eec" title="Plante un nombre donné de graines pour la génération de groupes d&#39;un type de terrain donné et les fai...">planterGrainesCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbGraines, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *pnouvTerrain, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleMax);
<a name="l00281"></a>00281 
<a name="l00290"></a>00290 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ab95180eaa2622e2d88a50296ad3eda6a" title="si x et/ou y dépasse(nt) d&#39;une valeur maximale, les ajuste à cette valeur.">ajusteCoordCarte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *y, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> xMax, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> yMax);
<a name="l00291"></a>00291 
<a name="l00304"></a>00304 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ad8f9cc53f6c2bf6ba948025e98ed339d" title="&quot;Fait pousser&quot; une graine d&#39;un type de terrain et de coordonnées donnés : modifie les terrains alen...">pousseGraineCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> xDep, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> yDep, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbMax, <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *terrGraine);
<a name="l00305"></a>00305 
<a name="l00317"></a>00317 <span class="keywordtype">char</span> <a class="code" href="_carte_8c.html#a77ff5e5967df07fe18be531614f72228" title="Renvoie 1 si la case est adjacente à une case étant d&#39;un terrain donné. Sinon, renvoie 0...">caseVoisineDeTerrainCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <span class="keywordtype">char</span> *nomTerrain, <span class="keyword">const</span> <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00318"></a>00318 
<a name="l00324"></a>00324 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a20cfa15e0f7f0bcb775d844859f61037" title="Met du sable autour des lacs de la surface de la carte.">sableCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00325"></a>00325 
<a name="l00343"></a>00343 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a22371db3534dcf55acb74c92b23ed4b7" title="&quot;Fait pousser&quot; une graine d&#39;un type de production et de coordonnées donnés : modifie les cases alen...">pousseGraineProdCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> xDep, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> yDep, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbMax, <span class="keywordtype">char</span> *nomProdGraine, <span class="keywordtype">char</span> *nomTerrainTabou);
<a name="l00344"></a>00344 
<a name="l00359"></a>00359 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#a15b1cf374ef18fd5f3c84e8a004532db" title="Plante un nombre donné de graines pour la génération de groupes d&#39;un type de production donné et les ...">planterGrainesProdCarte</a>(<a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *pcarte, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbGraines, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <span class="keywordtype">char</span> *nomNouvProd, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> tailleMax, <span class="keywordtype">char</span> *nomTerrainTabou);
<a name="l00360"></a>00360 
<a name="l00374"></a>00374 <a class="code" href="struct_carte.html" title="Informations concernant un ensemble de cases.">Carte</a> *<a class="code" href="_carte_8c.html#a06c43d9c8670241ff7fa91b9112af9a8" title="Crée et génère une carte à partir d&#39;un tableau de terrains.">genererCarte</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> z, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbLacs, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbGrottes, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbForets, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbFilonsParStrate, <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptableauTerr);
<a name="l00375"></a>00375 
<a name="l00376"></a>00376 <span class="comment">/*================================== Test ===================================*/</span>
<a name="l00377"></a>00377 
<a name="l00381"></a>00381 <span class="keywordtype">void</span> <a class="code" href="_carte_8c.html#ad96bad833daa286e539ec68f9ed7863b" title="Teste les différentes fonctions du module Carte.">testCarte</a>();
<a name="l00382"></a>00382 
<a name="l00383"></a>00383 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
